home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_05
/
plauger
/
setf2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-08
|
357b
|
15 lines
--------- Listing 11: The function ios::setf(fmtflags, fmtflags) -----------
// iossetf2 -- ios::setf(fmtflags, fmtflags)
#include <ios>
ios::fmtflags ios::setf(fmtflags nf, fmtflags mask)
{ // set format bits under mask
ios::fmtflags of = _Fmtfl;
_Fmtfl = (_Fmtfl & ~mask) | (nf & mask & _Fmtmask);
return (of);
}